home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Temperature / DDocData.h < prev    next >
Encoding:
Text File  |  1998-10-29  |  662 bĀ   |  33 lines  |  [TEXT/CWIE]

  1. // DDocData -- data class for Temperature
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7. #define idCentigrade        'Cene'
  8. #define idFahrenheit        'Faht'
  9.  
  10. //----------
  11. struct DDocData {
  12.     AMSignaler        super;
  13.  
  14.     SInt32        mCentigrade;
  15.     SInt32        mFahrenheit;
  16. };
  17. typedef struct DDocData DDocData;
  18.  
  19. //----------
  20. DDocData*        NewDDocData ();
  21. void    DeleteDDocData        (DDocData*        data);
  22.  
  23. //----------
  24. void        DDocData_Init    (DDocData*        self);
  25. void        DDocData_Free    (DDocData*        self);
  26.  
  27. SInt32        GetCentigrade        (DDocData*        self);
  28. void        SetCentigrade        (DDocData*        self,
  29.                              SInt32        inValue);
  30. SInt32        GetFahrenheit        (DDocData*        self);
  31. void        SetFahrenheit        (DDocData*        self,
  32.                              SInt32        inValue);
  33.